import _fetch from './request.js'

function getPhoneCode(data) {
  return _fetch({
    url: "/sendsms",
    method: "post",
    data,
  });
}

function toRegister(data) {
  return _fetch({
    url: "register",
    method: "post",
    data,
  });
}

// 暴露出去
export { getPhoneCode, toRegister };
